home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8505 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.lang.c
  2. Path: netcom.com!cosmosis
  3. From: cosmosis@netcom.com (Chris Akins)
  4. Subject: findfirst, findnext in VC
  5. Message-ID: <cosmosisDnrC31.I48@netcom.com>
  6. Sender: cosmosis@netcom14.netcom.com
  7. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  8. X-Newsreader: Forte Free Agent 1.0.82
  9. Date: Mon, 4 Mar 1996 19:14:06 GMT
  10.  
  11. I am currently porting a large amount of code from BC 4.0 to VC 2.0.
  12. Most of the porting has gone fine, however there are a few snags.
  13. Many of our routines depend on a BC function called findfirst and
  14. findnext.  These functions are located in the dir.h file.  They
  15. allowed a program to pass a filename string like *.BMP or ABC??.LAN
  16. to findfirst().  findfirst() would return the file information for the
  17. first file that met the pattern (i.e. dosname, filepath, file size,
  18. ect.).  findnext would return the next file that met the critira until
  19. the directory was exhausted of all matches.  I need a function in VC
  20. that does the same thing (or at the very least returns the fullpath
  21. name of the matches).  
  22.  
  23. Thank you for any and all help.
  24.  
  25. Chris Akins
  26.  
  27.  
  28.